package com.lycos.ludrien.client;

import java.sql.Connection;

import com.lycos.ludrien.utils.DB;

public class Moteur {

	private static Connection con;
	
	public static ListeMots listeMots;
	public static ListePara listePara;
	
	public static void initialiser (){
		con = DB.connect();
		listeMots = new ListeMots(con);
		listePara = new ListePara(con);
		ReadQueries.readFileQueries();
	}
	
	public static void fermer(){
		DB.close(con);
	}

	public static Connection getCon() {
		return con;
	}
}
